{% extends "base.volt" %}

{% block pageFooter%}
    {{ javascript_include("/assets/manage/js/om/openCityList.js", false) }}
{% endblock %}

{% block content %}
    {{ partial("module/left_om") }}
    <div class="col-xs-10">
        <ol class="breadcrumb">
            <li>用户反馈管理</li>
            <li class="active">用户反馈列表</li>
        </ol>

		<div class="panel panel-default">
            <div class="panel-body">
                <form class="form-inline" role="form" action="" method="get">
                    <div class="form-group">
                        <div class="input-group">
                            <label class="input-group-addon">城市</label>
                            <select class="form-control" name="filterCity" id="filterCity">
                                <option value="-10000" {{ filterCity == -10000 ? 'selected="selected"' : '' }}>全部</option>
                                {% for oc in openCity %}
                                    <option value="{{ oc.city_id }}" {{ filterCity == oc.city_id ? 'selected="selected"' : '' }} >{{ oc.city_name|e }}</option>
                                {% endfor %}
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="input-group">
                        	<label class="input-group-addon" for="">内容</label>
                        	<input class="form-control" type="text" name="feedback_content" id="" value="{{feedback_content}}" />
                    	</div>
                    </div>
                    <div class="form-group">
                        <button type="submit" class="btn btn-primary"><i class="fa fa-filter"></i> 搜 索</button>
                    </div>
                    <div class="form-group">
                    	
                    </div>
                </form>
            </div>
        </div>

        <table class="table table-hover">
            <thead>
            <tr>
                <th style="width: 60px;">ID</th>
                <th style="width: 200px;">联系方式</th>
                <th>内容</th>
                <th style="width: 200px;">城市 </th>
                <th style="width: 120px;">时间</th>
            </tr>
            </thead>
            {% for d in data %}
                <tr>
                    <td>{{ d.feedback_id }}</td>
                    <td>{{ d.feedback_contact|e }}</td>
                    <td>{{ d.feedback_content|e }}</td>
                    <td>{{ d.city_name }}</td>
                    <td>{{ d.feedback_addtime }}</td>
                </tr>
            {% endfor %}
        </table>

        {{ this.tagNav.page(
            page,
            total,
            limit,
            url.get('om/userFeedback', [
            	'filterCity':filterCity,
            	'feedback_content':feedback_content,
                'page': '__PAGE__'
            ]
        )) }}
    </div>
{% endblock %}